﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for DateTimeConverter
/// </summary>
public class DateTimeConverter
{
	public DateTimeConverter()
	{

	}

    public String getTimeforMovie(TimeSpan tempMovieTime)
    {
        String movieTime = string.Format("{0:00}:{1:00}", tempMovieTime.Hours, tempMovieTime.Minutes);
        return movieTime;
    }

    public Dictionary<String, String> getDatesFromNow(string language)
    {
        Dictionary<String, String> dates = new Dictionary<String, String>();
        for (int i = 0; i < 7; i++)
        {
            dates.Add(DateTime.Today.AddDays(i).ToString("dd-MM-yyy"), DateTime.Today.AddDays(i).ToString("dddd", new System.Globalization.CultureInfo((language == "dutch" ? "nl-NL" : "en-US"))));
        }
        return dates;
    }

    public String getDayFromDate(DateTime date, string language)
    {
        return date.ToString("dddd", new System.Globalization.CultureInfo((language == "dutch" ? "nl-NL" : "en-US")));
    }
}